<?php

namespace app\admin\controller;

use app\common\controller\BaseController;
use think\App;
use app\admin\model\VerifyGoods as verifyGoodsModel;

class VerifyGoods extends BaseController
{
    protected $model;

    public function __construct(App $app, verifyGoodsModel $goodsRecord)
    {
        parent::__construct($app);
        $this->model = $goodsRecord;
    }

    /**
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     * 列表
     */
    public function query()
    {
        $field = "id,good_id good_name,good_id good_img,member_id nickname,exchange_integral,phone,create_time";
        $order = "create_time DESC";
        $page = input('page/d', 1);
        $pageSize = input('page_size/d', 10);
        $where = [];
        return $this->model->getList($where, $field, $order, $page, $pageSize);
    }
}